<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改编号规则')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-norule-edit" th:object="${mappingNumberRule}">
            <input name="noRuleId" th:field="*{noRuleId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">编号规则代码：</label>
                <div class="col-sm-8">
                    <input name="noRuleCode" th:field="*{noRuleCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">编号规则名称：</label>
                <div class="col-sm-8">
                    <input name="noRuleName" th:field="*{noRuleName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">编号规则说明：</label>
                <div class="col-sm-8">
                    <input name="noRuleRemark" th:field="*{noRuleRemark}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">编号生成java类名：</label>
                <div class="col-sm-8">
                    <input name="noCreateClass" th:field="*{noCreateClass}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">编号生成java包名：</label>
                <div class="col-sm-8">
                    <input name="noCreateLib" th:field="*{noCreateLib}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">编号生成java方法名：</label>
                <div class="col-sm-8">
                    <input name="noCreateMethod" th:field="*{noCreateMethod}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">编号加载java类名：</label>
                <div class="col-sm-8">
                    <input name="noLoadClass" th:field="*{noLoadClass}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">编号加载java包名：</label>
                <div class="col-sm-8">
                    <input name="noLoadLib" th:field="*{noLoadLib}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">编号加载java方法名：</label>
                <div class="col-sm-8">
                    <input name="noLoadMethod" th:field="*{noLoadMethod}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">编号使用方法id：</label>
                <div class="col-sm-8">
                    <input name="noFunctionId" th:field="*{noFunctionId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">编号使用方法名称：</label>
                <div class="col-sm-8">
                    <input name="noFunctionName" th:field="*{noFunctionName}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "mapping/norule";
        $("#form-norule-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-norule-edit').serialize());
            }
        }
    </script>
</body>
</html>